Pod::Spec.new do |s|

  s.name         = "iwanpaMediaPlayer"
  s.version      = "0.0.1"
  s.summary      = "Video player based on ijkplayer"
  s.homepage     = "http://www.iwanpa.com"

  s.license      = "MIT"
  s.author       = { "CGWatson" => "guohua.chen@woxiu.com" }

  s.platform     = :ios, '8.0'

  s.source       = { :svn => "svn://svn.woxiu.com/ios/iwanpa/Pods/iwanpaMediaPlayer", :tag => s.version.to_s }

  s.frameworks     = 'AudioToolbox', 'AVFoundation', 'CoreAudio', 'CoreGraphics', 'CoreMedia', 'CoreVideo', 'MediaPlayer', 'OpenGLES', 'UIKit', 'QuartzCore','VideoToolbox'
  s.libraries = "z", "bz2"

 s.subspec 'ffmpeg' do |ss|
 ss.source_files         = 'Sources/ffmpeg/include/**/*.h'
 ss.public_header_files  = 'Sources/ffmpeg/include/**/*.h'
 ss.header_mappings_dir  = 'Sources/ffmpeg'
 ss.vendored_libraries   = 'Sources/ffmpeg/lib/**/*.a'
end

  s.subspec 'IJKMediaPlayer' do |ss|
    ss.dependency 'iwanpaMediaPlayer/ffmpeg'
    ss.source_files         = 'Sources/IJKMediaPlayer/Headers/*.h'
    ss.public_header_files  = 'Sources/IJKMediaPlayer/Headers/*.h'
    ss.header_mappings_dir  = 'Sources/IJKMediaPlayer'
    ss.vendored_libraries   = 'Sources/IJKMediaPlayer/*.a'
end


 s.subspec 'RTMP' do |ss|
 ss.dependency 'iwanpaMediaPlayer/IJKMediaPlayer'
 ss.source_files         = 'Sources/RTMP/*.{h,m}'
 ss.public_header_files  = 'Sources/RTMP/*.h'
 ss.header_mappings_dir  = 'Sources/RTMP'
end

end
